package com.hexun.busi.base.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 从配置文件中读取参数
 * @auther: zhoudong
 * @date: 2018/4/24 11:09
 */
@Component
@ConfigurationProperties(prefix="")
@PropertySource("classpath:config-${spring.profiles.active}.properties")
public class Config {
    private String openIdKey;


    public String getOpenIdKey() {
        return openIdKey;
    }

    public void setOpenIdKey(String openIdKey) {
        this.openIdKey = openIdKey;
    }
    
}
